-- GENERATED SPELL FOR [Unliving Soldier] --


function spell0_18498(pUnit, Event) --@Protection Aura,Self--
pUnit:FullCastSpellOnTarget(32828,pUnit)
pUnit:RegisterEvent('Sorts_18498', 628, 1)
end

function spell1_18498(pUnit, Event) --@Shield Bash,n/a--
pUnit:FullCastSpellOnTarget(11972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18498', 8308, 1)
end

function Sorts_18498(pUnit, Event)
local choix_sorts_18498 = math.random(0, 1)
if choix_sorts_18498 == 0 then
pUnit:RegisterEvent('spell0_18498', 1, 1)
end
if choix_sorts_18498 == 1 then
pUnit:RegisterEvent('spell1_18498', 1, 1)
end
end

function mob18498_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18498', math.random(1500, 3000), 1)
end

function mob18498_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18498_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18498_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18498, 1, 'mob18498_Action')
RegisterUnitEvent(18498, 2, 'mob18498_Leave')
RegisterUnitEvent(18498, 3, 'mob18498_Kill')
RegisterUnitEvent(18498, 4, 'mob18498_Die')
